import request from '@/utils/request.js'

const api = '/lib';
export const imgUrl = 'https://cube.elemecdn.com/'//圖片路徑

//首页swipe获取
export const getSwipeList = params => request({ url: api + '/restapi/shopping/v2/entries?templates[]=main_template&templates[]=favourable_template&templates[]=svip_template', method: 'get', params })

//地区数据
export const libCityListCity_list = params => request({ url: 'https://shadow.elemecdn.com/lib/city-list@0.0.3/city_list.json', method: 'get', params })

//用户选择地区
export const regionSelection = params => request({ url: './JSON/regionSelection.json', method: 'get', params })

//获取首页数据
export const homeListUrl = params => request({ url: './JSON/homeDate.json', method: 'get', params })

//搜索地区
export const searchAreaUrl = params => request({ url: api + '/restapi/bgs/poi/search_poi_nearby_alipay', method: 'get', params })

//筛选条件
export const screenUrl = params => request({ url: api + '/pizza/shopping/restaurants/batch_filter', method: 'get', params })

//获取首页数据
export const homeDateUrl = params => request({ url: api + '/restapi/shopping/v3/restaurants?extras[]=activities&extras[]=tags&extra_filters=home&rank_id=&terminal=h5', method: 'get', params })

//獲取食品分类
export const FoodCategoryUrl = params => request({ url: api + '/restapi/shopping/v2/foods_page/sift_factors', method: 'get', params })

//获取详细食品分类
export const FoodDetailsUrl = params => request({ url: api + '/restapi/shopping/v2/restaurant/category', method: 'get', params })

//获取分类列表数据
export const categoryDateListUrl = params => request({ url: api + '/restapi/shopping/v3/restaurants', method: 'get', params })

//獲取發現的數據
export const getFindListUrl = params => request({ url: api + '/restapi/member/gifts/suggest', method: 'get', params })

//获取订单数据
export const getOrderListUrl = params => request({ url: './JSON/OrderList.json', method: 'get', params })
